// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(75,2) == 0;
	question = "special";
	text1 = "You emerge from the fungal, thorny woods and enter a broad plain on Terrestia's southern shore. You can hear and smell the ocean to the south, though being this close to water has done little to make this land more hospitable.";
	text2 = "To the southeast, you can see a huge tower, rising from the rocky, jagged foothills. Lights glow in the windows, and figures move around at the base. The mountains rise steeply above and behind it, giving it shelter from the east.";
	text3 = "The road here shows signs of only very light travel. The signs nearby give hints of why. Unwelcome visitors here aren't shooed away. They are killed.";
	text4 = "In the distance, through the dust, you can make out guards watching you. When you get closer, you will swiftly learn how they react to your presence.";
	action = SET_SDF 75 2 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(75,3) == 0;
	question = "special";
	text1 = "From here, you get a better look at Kayar's Spire, the remote Shaper stronghold of the Dera Reaches. It is an imposing structure of black stone. Servile labor has built walls out of massive slabs of rough rock.";
	text2 = "Even from here, you can sense the power of this place. Your skin tingles and itches, and your hair stands up on end.";
	text3 = "There is a dark tunnel at the base, flanked by guardhouses. The main entry is, of course, well-guarded.";
	action = SET_SDF 75 3 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "As you proceed down the road, you hear a horn. Then shouting. The guards in the distance have decided not to let you get closer.";
	text2 = "There is a creation camp to the south. You see lumbering creations moving around on the other side of the gateway. And then some of them start to come out ...";

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  KAYAR'S SPIRE";
	text3 = "  ANYONE NOT A KNOWN SERVANT OF";
	text4 = "  SAGE TAYGEN KILLED ON SIGHT";
	text5 = "  BEYOND THIS POINT!!!";
	
begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  South Camp BETA";
	
begintalknode 6; //s erv
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several servile workers staying in tents in this camp. Some of them tend the crops outside. Others work in the Spire, doing unpleasant menial labor.";
	text2 = "Even by servile standards, these are shy, nervous creatures. They are properly fed, but they won't trade even a single word with strangers. When you get close, they mutter something and wander off.";
	
begintalknode 7; // guard
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The human guards outside Kayar's Spire have been warned that you were coming. Sage Taygen was at least focused enough to do you that little favor.";
	text2 = "Being so close to Kayar's Spire has made them very twitchy and nervous. They aren't as used to being exposed to constant magical energy as you. They are cordial, but they mainly want to be left alone to fidget quietly.";
	
begintalknode 8; // mob
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "A wide range of powerful war creations are living in this camp, waiting to be called out to crush intruders. Between the constant ambient magical energy and the lack of firm Shaper guidance, these creatures are very nervous.";
	text2 = "You decide to keep a safe distance away. They are in a state of fine mental equilibrium. You don't want to disrupt it.";
	
begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";


begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Keeper Wethers";
	text1 = "The Keeper of this creation camp is sitting at this table, drinking ale and reviewing her current orders. She has to watch over a host of powerful creations, and she takes them seriously. Her blade is always close at hand.";
	text2 = "She looks up at you. _Ahhh ... The guards told me to watch out for you. You work for Taygen. I'm Keeper Wethers. I run this camp._";
	text3 = "_I have to ask you to leave. It's hard keeping the beasts here under control, and I can't do it with outsiders poking about._";
	text5 = "Keeper Wethers says, _Still here? I need you to go. I am serious. Outside influences, especially ones who can work essence, upset the beasts. Say your peace and move on._";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Tell me about Kayar's Spire.";
	text1 = "_I know nothing about it. I've never been inside. I ask what's in there, and they never tell me._";

begintalknode 12;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Does that worry you?";
	text1 = "_Being right outside a Shaper workshop surrounded by barely controlled creations? How could that possibly go wrong?_";

begintalknode 13;
	state = 10;
	nextstate = 12;
	condition = 1;
	question = "You are in charge of this camp?";
	text1 = "_I am. I have a few guards to help. And a few serviles. But mostly we rely on the beasts deciding not to kill us._";

begintalknode 14;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "You call them 'beasts'?";
	text1 = "_I do. They're too dumb for their feelings to be hurt, and it helps us remember. They could rise up and kill us at any moment._";

begintalknode 15;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "The Shapers don't help you?";
	text1 = "_The few Shapers left in the Dera Reaches are all off hunting rogues. Or in Kayar's Spire, doing who knows what._";
	text2 = "";

begintalknode 16;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "How do you keep the creations under control?";
	text1 = "_Plenty of food. That is one thing this camp has the others don't. Food. And ale. And we don't beat them unless we absolutely have to._";

begintalknode 17;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "Why do you get so many resources?";
	text1 = "_We guard the gate to the Spire. If anyone who shouldn't be here comes down that road, we open the gates. The creations go out and smash them. It's good when it happens. Gives them some fresh air._";

begintalknode 18;
	state = 10;
	nextstate = 14;
	condition = gf(75,8) == 0;
	question = "Can I get some supplies?";
	text1 = "_What makes you think we have anything you could use? We have food for the creations. And some medical supplies to tend to them. Nothing else we can spare._";

begintalknode 19;
	state = 14;
	nextstate = -1;
	condition = get_stat(20) >= 7;
	question = "I am a servant of Sage Taygen. Surely you can give me something.";
	text1 = "She sighs. _Of course. You pull rank. Fine._ She leaves and returns a few minutes later with two pouches of spores. _This is all we can spare. We have to be able to heal wounded creations. Otherwise, they go rogue._";
	code =
		sf(75,8,1);
		award_party_xp(100,30);
		reward_give(235);
		reward_give(237);
	break;
	
begintalknode 20;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "That is all I need to know.";
	text1 = "_Then be moving on. Don't poke around the creations. Who knows what they might do?_";
	action = END_TALK;

	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 35;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 36;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 37;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 38;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 39;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 40;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 41;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 42;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 43;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 44;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		